﻿<%@ Page Title="" Language="C#" MasterPageFile="~/home.master" AutoEventWireup="true" CodeFile="ProfileCustomer.aspx.cs" Inherits="ProfileCustomer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Css/profile1.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="box_main">
        <div class="title">
            <div class="title_img1"></div>
            <div class="title_img2">
                <p>Profile</p>
            </div>
            <div class="title_img3"></div>
            <div class="title_img4"></div>
            <div class="title_img5"></div>
        </div>
        <div class="content_left">
            <div class="title_customer">Infomation Customer</div>
            <div class="label">Customer ID:</div>
            <div class="textbox">
                <asp:TextBox ID="txtCustomerId" runat="server" Width="190px"></asp:TextBox>
            </div>
            <div class="label">Customer Name:</div>
            <div class="textbox">
                <asp:TextBox ID="txtCustomerName" runat="server" Width="190px"></asp:TextBox>
            </div>
            <div class="label">Customer Email:</div>
            <div class="textbox">
                <asp:TextBox ID="txtCustomerEmail" runat="server" Width="190px"></asp:TextBox>
            </div>
            <div class="label">Customer Status:</div>
            <div class="textbox">
                <asp:TextBox ID="txtStatus" runat="server" Width="190px"></asp:TextBox>
            </div>
            <div class="label">
                <asp:Label ID="lblDatefrom" runat="server" Text="Date Register" Visible="False"></asp:Label>
            </div>
            <div class="textbox">
                <asp:TextBox ID="txtDatefrom" runat="server" Width="190px" Visible="False"></asp:TextBox>
            </div>
            <div class="label">
                <asp:Label ID="lblDateto" runat="server" Text="Time-expired" Visible="False"></asp:Label>
            </div>
            <div class="textbox">
                <asp:TextBox ID="txtDateto" runat="server" Width="190px" Visible="False"></asp:TextBox>
            </div>
        </div>
        <div class="content_right">
            <div class="title_customer">Add Email Receiver</div>
            <div class="error">
                <asp:Label ID="lblerror" runat="server" Text=""></asp:Label>
            </div>
            <div class="error">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
            </div>
            <div class="label">Receiver Name :</div>
            <div class="textbox">
                <asp:TextBox ID="txtNameReceiver" runat="server" Width="190px"></asp:TextBox>
            </div>
            <div class="text_error">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Name must is not null" Text="*" ForeColor="Red" ControlToValidate="txtNameReceiver"></asp:RequiredFieldValidator>

            </div>
            <div class="label">Receiver Email :</div>
            <div class="textbox">
                <asp:TextBox ID="txtEmailReceiver" runat="server" Width="190px"></asp:TextBox>
            </div>
            <div class="text_error">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Email must is not null" Text="*" ForeColor="Red" ControlToValidate="txtEmailReceiver"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Email not valid" Text="*" ForeColor="Red" ControlToValidate="txtEmailReceiver" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </div>
            <div class="label">Receiver Birthday :</div>
            <div class="textbox">
                <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>
                <asp:CalendarExtender
                    ID="CalendarExtender1"
                    TargetControlID="txtBirthday" Format="dd/MM/yyyy" 
                    runat="server" />
            </div>
            <div class="text_error">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Birthday must is not null" Text="*" ForeColor="Red" ControlToValidate="txtBirthday"></asp:RequiredFieldValidator>

            </div>
            <div class="label"></div>
            <div class="textbox">
                <asp:Button ID="btnAdd" runat="server" Text="Add" BackColor="#FF6600" ForeColor="White" Width="50px" OnClick="btnAdd_Click" />
            </div>
            <div class="gridview_listEmail">
                <asp:GridView ID="grvListEmail" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="contactEmailId" OnRowDeleting="grvListEmail_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="contactEmailId" HeaderText="ID" />
                        <asp:BoundField DataField="name" HeaderText="Name" />
                        <asp:BoundField DataField="birthday" HeaderText="Birthday" />
                        <asp:BoundField DataField="email" HeaderText="Email" />
                        <asp:CommandField ButtonType="Button" ShowDeleteButton="True">
                        <ControlStyle BackColor="#FF6600" ForeColor="White" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>

